package fr.sinno.wms.batch.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LineBonLivraison implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 10.
	 */
	private int lineNumber;
	/**
	 * 50.
	 */
	private String custLineNumber;
	/**
	 * 50.
	 */
	private String productCode;
	/**
	 * 50.
	 */
	private String lotCode;
	/**
	 * 12.
	 */
	private Double quantity;
	/**
	 * 50.
	 */
	private String serialNO;
	/**
	 * 14.
	 */
	private Date expiryDate;
	/**
	 * 10.
	 */
	private String uomCode;
	/**
	 * 12.
	 */
	private Double salePrice;
	/**
	 * 50.
	 */
	private String quality;
	/**
	 * 14.
	 */
	private Date bestBeforeDate;
	/**
	 * 12.
	 */
	private Double minShelfLife;
	/**
	 * 12.
	 */
	private Double servedQuantity;
	/**
	 * 12.
	 */
	private Double weight;
	/**
	 * 14.
	 */
	private Date date;
	/**
	 * 12.
	 */
	private Double qttyOrdered;
	/**
	 * 12.
	 */
	private Double qttyShipped;
	/**
	 * 12.
	 */
	private Double qttySubstituted;
	/**
	 * 12.
	 */
	private Double qttyDamaged;
	/**
	 * 12.
	 */
	private Double qttyRefused;
	/**
	 * 12.
	 */
	private Double qttyAllocByHost;
	/**
	 * 10.
	 */
	private int numDetails;
	/**
	 * 10.
	 */
	private int numLot;

	private Double quantiteRestante;

	private String articleAlternatif;
	private String description;

	private List<DetailBonLivraison> bonLivraisonDetails  = new ArrayList<DetailBonLivraison>();
	private List<LotBonLivraison> bonLivraisonLots = new ArrayList<LotBonLivraison>();
	
	public void addBonLivraisonDetail(DetailBonLivraison item)
	{
		bonLivraisonDetails.add(item);
	}
	public void addBonLivraisonLot(LotBonLivraison item)
	{
		bonLivraisonLots.add(item);
	}
	
	public List<LotBonLivraison> getBonLivraisonLots() {
		return bonLivraisonLots;
	}
	public void setBonLivraisonLots(List<LotBonLivraison> bonLivraisonLots) {
		this.bonLivraisonLots = bonLivraisonLots;
	}
	/**
	 * 
	 */
	public LineBonLivraison() {
		super();
	}

	/**
	 * @return the lineNumber
	 */
	public int getLineNumber() {
		return lineNumber;
	}

	/**
	 * @param lineNumber the lineNumber to set
	 */
	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}

	/**
	 * @return the custLineNumber
	 */
	public String getCustLineNumber() {
		return custLineNumber;
	}

	/**
	 * @param custLineNumber the custLineNumber to set
	 */
	public void setCustLineNumber(String custLineNumber) {
		this.custLineNumber = custLineNumber;
	}

	/**
	 * @return the productCode
	 */
	public String getProductCode() {
		return productCode;
	}

	/**
	 * @param productCode the productCode to set
	 */
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	/**
	 * @return the lotCode
	 */
	public String getLotCode() {
		return lotCode;
	}

	/**
	 * @param lotCode the lotCode to set
	 */
	public void setLotCode(String lotCode) {
		this.lotCode = lotCode;
	}

	/**
	 * @return the quantity
	 */
	public Double getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(Double quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the serialNO
	 */
	public String getSerialNO() {
		return serialNO;
	}

	/**
	 * @param serialNO the serialNO to set
	 */
	public void setSerialNO(String serialNO) {
		this.serialNO = serialNO;
	}

	/**
	 * @return the expiryDate
	 */
	public Date getExpiryDate() {
		return expiryDate;
	}

	/**
	 * @param expiryDate the expiryDate to set
	 */
	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}

	/**
	 * @return the uomCode
	 */
	public String getUomCode() {
		return uomCode;
	}

	/**
	 * @param uomCode the uomCode to set
	 */
	public void setUomCode(String uomCode) {
		this.uomCode = uomCode;
	}

	/**
	 * @return the salePrice
	 */
	public Double getSalePrice() {
		return salePrice;
	}

	/**
	 * @param salePrice the salePrice to set
	 */
	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	/**
	 * @return the quality
	 */
	public String getQuality() {
		return quality;
	}

	/**
	 * @param quality the quality to set
	 */
	public void setQuality(String quality) {
		this.quality = quality;
	}

	/**
	 * @return the bestBeforeDate
	 */
	public Date getBestBeforeDate() {
		return bestBeforeDate;
	}

	/**
	 * @param bestBeforeDate the bestBeforeDate to set
	 */
	public void setBestBeforeDate(Date bestBeforeDate) {
		this.bestBeforeDate = bestBeforeDate;
	}

	/**
	 * @return the minShelfLife
	 */
	public Double getMinShelfLife() {
		return minShelfLife;
	}

	/**
	 * @param minShelfLife the minShelfLife to set
	 */
	public void setMinShelfLife(Double minShelfLife) {
		this.minShelfLife = minShelfLife;
	}

	/**
	 * @return the servedQuantity
	 */
	public Double getServedQuantity() {
		return servedQuantity;
	}

	/**
	 * @param servedQuantity the servedQuantity to set
	 */
	public void setServedQuantity(Double servedQuantity) {
		this.servedQuantity = servedQuantity;
	}

	/**
	 * @return the weight
	 */
	public Double getWeight() {
		return weight;
	}

	/**
	 * @param weight the weight to set
	 */
	public void setWeight(Double weight) {
		this.weight = weight;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the qttyOrdered
	 */
	public Double getQttyOrdered() {
		return qttyOrdered;
	}

	/**
	 * @param qttyOrdered the qttyOrdered to set
	 */
	public void setQttyOrdered(Double qttyOrdered) {
		this.qttyOrdered = qttyOrdered;
	}

	/**
	 * @return the qttyShipped
	 */
	public Double getQttyShipped() {
		return qttyShipped;
	}

	/**
	 * @param qttyShipped the qttyShipped to set
	 */
	public void setQttyShipped(Double qttyShipped) {
		this.qttyShipped = qttyShipped;
	}

	/**
	 * @return the qttySubstituted
	 */
	public Double getQttySubstituted() {
		return qttySubstituted;
	}

	/**
	 * @param qttySubstituted the qttySubstituted to set
	 */
	public void setQttySubstituted(Double qttySubstituted) {
		this.qttySubstituted = qttySubstituted;
	}

	/**
	 * @return the qttyDamaged
	 */
	public Double getQttyDamaged() {
		return qttyDamaged;
	}

	/**
	 * @param qttyDamaged the qttyDamaged to set
	 */
	public void setQttyDamaged(Double qttyDamaged) {
		this.qttyDamaged = qttyDamaged;
	}

	/**
	 * @return the qttyRefused
	 */
	public Double getQttyRefused() {
		return qttyRefused;
	}

	/**
	 * @param qttyRefused the qttyRefused to set
	 */
	public void setQttyRefused(Double qttyRefused) {
		this.qttyRefused = qttyRefused;
	}

	/**
	 * @return the qttyAllocByHost
	 */
	public Double getQttyAllocByHost() {
		return qttyAllocByHost;
	}

	/**
	 * @param qttyAllocByHost the qttyAllocByHost to set
	 */
	public void setQttyAllocByHost(Double qttyAllocByHost) {
		this.qttyAllocByHost = qttyAllocByHost;
	}

	/**
	 * @return the numDetails
	 */
	public int getNumDetails() {
		return numDetails;
	}

	/**
	 * @param numDetails the numDetails to set
	 */
	public void setNumDetails(int numDetails) {
		this.numDetails = numDetails;
	}

	/**
	 * @return the numLot
	 */
	public int getNumLot() {
		return numLot;
	}

	/**
	 * @param numLot the numLot to set
	 */
	public void setNumLot(int numLot) {
		this.numLot = numLot;
	}
	public List<DetailBonLivraison> getBonLivraisonDetails() {
		return bonLivraisonDetails;
	}
	public void setBonLivraisonDetails(List<DetailBonLivraison> bonLivraisonDetails) {
		this.bonLivraisonDetails = bonLivraisonDetails;
	}
	/**
	 * @param quantiteRestante the quantiteRestante to set
	 */
	public void setQuantiteRestante(Double quantiteRestante) {
		this.quantiteRestante = quantiteRestante;
	}
	/**
	 * @return the quantiteRestante
	 */
	public Double getQuantiteRestante() {
		return quantiteRestante;
	}
	/**
	 * @return the articleAlternatif
	 */
	public String getArticleAlternatif() {
	    return articleAlternatif;
	}
	/**
	 * @param articleAlternatif the articleAlternatif to set
	 */
	public void setArticleAlternatif(String articleAlternatif) {
	    this.articleAlternatif = articleAlternatif;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	
}
